#include("../../comm/FormHead.html")
<div id="main">
    <div style="margin: 10px">
        <form action="" class="layui-form" lay-filter="form">
            <input type="hidden" name="actions" value="#(form.actions)">
            #(token??)
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-form-item">
                        <label class="layui-form-label">角色ID</label>

                        <div class="layui-input-block">
                            <input type="text" id="role_id" name="role_id" placeholder="请输入角色ID" #(form.actions== 'EDIT'?'readonly':'')
                            value="#(role.role_id)" class="layui-input #(form.actions== 'EDIT'?'input-readonly':'')">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-form-item">
                        <label class="layui-form-label">角色名称</label>

                        <div class="layui-input-block">
                            <input type="text" id="role_name" name="role_name" placeholder="请输入姓名"
                                   value="#(role.role_name)" class="layui-input">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-form-item">
                        <label class="layui-form-label">显示顺序</label>

                        <div class="layui-input-block">
                            <input type="text" id="sindex" name="sindex" placeholder="请输入姓名"
                                   value="#(role.sindex)" class="layui-input">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-form-item">
                        <label class="layui-form-label">角色说明</label>

                        <div class="layui-input-block">
                            <textarea name="role_desc" placeholder="请输入内容" class="layui-textarea">#(role.role_desc)</textarea>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="submit" class="layui-btn" lay-submit="" lay-filter="Submit1">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
<SCRIPT LANGUAGE="JavaScript">
    <!--
    layui.use(['form', 'myTool'], function () {
        var form = layui.form, $ = layui.$;
        form.on('submit(Submit1)', function (data) {
            layui.myTool.postJson('ModifySysRoleApi', data.field, function (results) {
                top.layer.closeAll();
                return false;
            });
            return false;
        });
    });
    //-->
</SCRIPT>
#include("../../comm/Foot.html")
